import 'package:videotop/base_model.dart';
import 'package:videotop/jsonbean/login_bean.dart';

class MyInfo extends BaseModel{
  int followers;
  int following;
  int gold;
  int price;
  int sex;
  int uid;
  int verify;
  int vip;
  String code;
  int visitors;
  String birth;
  String city;
  String country;
  String icon = '';
  String logtime;
  String nickname;
  String regtime;
  String signtext;
  String video;
  List<dynamic> img;
  
  
  bool once = false;
  
  
  setMyInfo(User user){
    birth = user.birth;
    sex = user.sex;
    icon = user.icon;
    nickname = user.nickname;
    followers = user.followers;
    following = user.following;
    vip = user.vip;
    uid = user.uid;
    price = user.price;
    gold = user.gold;
    visitors = user.visitors;
    signtext = user.signtext;
    video = user.video;
    country = user.country;
    code = user.code;
    img = user.img;
    notifyListeners();
  }

  setfollowing(int num){
    this.following = num;
    notifyListeners();
  }
}
